package com.hr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hr.bean.Employee;
import com.hr.mapper.EmployeeMapper;
import com.hr.service.IEmployeeService;
import com.hr.vo.ResultSet;
@Service
public class EmployeeServiceImpl implements IEmployeeService {

	@Autowired
	private EmployeeMapper employeeMapper;

	@Override
	public ResultSet listAll() {
		List<Employee> emplist = employeeMapper.listAll();
		ResultSet r = new ResultSet();
		r.setDatas(emplist);
		return r;
	}

}
